package com.henu.engineer.dao.mapper.teacher

import com.henu.engineer.dao.entity.user.Teacher
import com.henu.engineer.dao.mapper.UserXmlMapper
import org.apache.ibatis.annotations.Mapper
import org.springframework.stereotype.Repository

/**
 * @author noexcept
 * @date 2021/7/26 6:41
 */
@Mapper
@Repository
interface TeacherXmlMapper : UserXmlMapper {
    /**
     * 添加老师
     * @param teacher
     * @return
     * 同时不要忘记在User表中添加记录
     * @see UserXmlMapper.insertUser
     */
    fun insertTeacher(teacher: Teacher?): Boolean
    fun updateContact(id: String, contact: String): Boolean
    fun updateIdentity(id: String, identity: String): Boolean

    fun selectTeacher(id: String): Teacher?
}